import request from '../request'

//随访模板列表
export const getFollowList = () => request.globalRequest(`/aos/follow/followTemp/list`, 'GET', {})

//医生的患者列表
export const getPatientList = () => request.globalRequest(`/aos/follow/followOrder/getPatientInfoApp`, 'GET', {})

//创建随访计划申请
export const FollowPlanAdd = data => request.globalRequest(`/aos/follow/followOrder/appAdd`, 'POST', { data: data })

//随访计划各个状态的数量
export const getFollowStateNumber = () => request.globalRequest(`/aos/follow/followOrder/followNum`, 'GET', {})

//随访计划各个状态的列表
export const getFollowStateList = params => request.globalRequest(`/aos/follow/followOrder/doctorAppList`, 'GET', { params: params })

//取消随访计划
export const FollowPlanCancel = data => request.globalRequest(`/aos/follow/followOrder/cancel`, 'POST', { data: data })

//患者随访列表
export const getUserFollowList = params => request.globalRequest(`/aos/follow/followOrder/userAppList`, 'GET', { params: params })

// 随访计划详情
export const getUserFollowParticulars = params => request.globalRequest(`/aos/follow/followOrder/appDetail`, 'GET', { params: params })

// 随访计划详情
export const FollowPlanSubmit = data => request.globalRequest(`/aos/follow/followOrder/writeFollow`, 'POST', { data: data })
